< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03090409.xhp

(section: sub) (bookmark: bm_id3147226)
Sub statement

Sub ステートメント

Sub Statement [Runtime]
Sub ステートメント [実行時](hd_id3147226.1)

Defines a subroutine.
サブルーチンを定義します。(par_id3153311.2)

(/section: sub)

Syntax
構文(hd_id3149416.3)

Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])]
Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])](par_idN105E7.)

statement block
ステートメントブロック(par_id3147530.5)

End Sub
End Sub(par_id3146795.8)

Parameters:
パラメータ:(hd_id3153525.9)

Name: Name of the subroutine .
Name: サブルーチンの名前。(par_id3150792.10)

VarName: Parameter that you want to pass to the subroutine.
VarName:サブルーチンに渡すパラメータ。(par_id3154138.11)

Type: Type-declaration key word.
Type: 型宣言キーワード(par_id3154908.12)

Example:
例:(hd_id3153770.16)

Sub Example
Sub Example(par_id3151113.17)

REM some statements
REM 一部の文(par_idN1063F.)

end sub
end sub(par_id3154319.19)


< Prev / Next >